module.exports = {
  lintOnSave: false,
  devServer: {
    open: true,
    port: 8000,
    proxy: {
      //捕获以api路径开头的路径
      '/api': {
        target: 'http://rap2.taobao.org:38080/app/mock/264110',
        changeOrigin: true,
        ws: false,
        //重写路径
        pathRewrite: {
          '^/api': '/api'
        }
      }
    }
  }
}